{include file="include:header" /}
<body class="fixed-sidebar full-height-layout gray-bg" >
    <div class="row wrapper border-bottom white-bg page-heading">
        <div class="col-sm-4">
            <h2>三级功能添加</h2>
            <!-- 导航部分 -->
            <ol class="breadcrumb">
                <li><a href="{:url('admin/Index/home')}">主页</a></li>
                <li><a href="{:url('admin/Account/menus')}">功能列表</a></li>
                <li><strong>{$title}三级功能</strong></li>
            </ol>
        </div>
        <div class="col-sm-8">
            <div class="title-action">
                <!-- 链接部分 -->
                <a href="#" onclick="javascript:history.back(-1);" class="btn btn-primary">上级列表</a>                 
 
            </div>
        </div>
    </div>
    <!-- 会员列表 -->
    <div class="wrapper wrapper-content">
        <form method="get" class="valid-form form-horizontal admin-function">
            <!-- 基础信息 -->
            <div class="panel panel-default">
                <div class="panel-heading">基础信息</div>
                <div class="panel-body">

                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">功能名称</label>
                        <div class="col-sm-4">
                            <input type="text" class="form-control" name="af_fname" value="{$info['af_fname']?$info['af_fname']:''}"  placeholder="功能名称" datatype="*" errormsg="请输入功能名称" sucmsg=" " />
                        </div>
                    </div>
                    
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">地址</label>
                        <div class="col-sm-4">
                            <input type="text" class="form-control" name="af_furl" value="{$info['af_furl']?$info['af_furl']:''}"  placeholder="地址" datatype="*" errormsg="请输入地址" sucmsg=" " />
                        </div>
                    </div>
                    
                    <div class="form-group">
                        <label class="col-sm-2 control-label">功能权限</label>
                        <div class="col-sm-2 form-inline">
                            <select class="form-control m-b" name="af_strte">
                                {if condition="$info['af_strte'] neq ''"}
                                <option value="1" {if condition="$info['af_strte'] eq 1"}selected="selected"{/if}>权限功能</option>
                                <option value="2" {if condition="$info['af_strte'] eq 2"}selected="selected"{/if}>非权限功能</option>
                                {else/}
                                <option value="1" >权限功能</option>
                                <option value="2">非权限功能</option>
                                {/if}

                            </select>
                        </div>
                    </div>
                    
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                     <input type="hidden" name="admin_menu_id" value="{$admin_menu_id}"/>
                     <input type="hidden" name="am_pid" value="{$am_pid}"/>
                        <input type="hidden" name="admin_function_id" value="{$info['admin_function_id']?$info['admin_function_id']:''}"/>

                        <div class="col-sm-offset-2 col-sm-6">
                            <a href="#" class="btn btn-danger submit">确认提交</a>&nbsp;&nbsp;
                            <a class="mg-left-10 btn btn-white" href="#" alt="取消修改">取消</a>
                        </div>
                    </div>
                </div>
            </div>
            
        </form>
    </div>

</body>
</html>
{include file="include:js" /}
